<!-- at this stage in the game we should always have a user -->
<% user = get_user %>

<%= error_messages_for 'message' %>

<%= hidden_field 'message', 'parent_id' %>
<%= hidden_field 'message', 'lft'  %></p>
<%= hidden_field 'message', 'rgt'  %></p>
<%= hidden_field 'message', 'depth'  %></p>

<!--[form:message]-->

<label for="message_name">Author</label>: <%= get_author_name %>
<%= hidden_field 'message', 'user_id' , 'value' => user.id %>

<p><label for="message_subject">Subject: </label>
<%= text_field 'message', 'subject' , "size" => 62 %></p>

<p><label for="message_body">Body</label><br/>
<%= text_area 'message', 'body' , "cols" => 80 %></p>

<!--[eoform:message]-->
